package app.goods.info.views.models;

import javax.swing.table.DefaultTableColumnModel;
import javax.swing.table.TableColumn;

public class CustomColumnModel extends DefaultTableColumnModel {  
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// 定义列宽的变量  
    private int columnWidth;  
  
    public CustomColumnModel(int columnWidth) {  
        this.columnWidth = columnWidth;  
    }  
  
    // 获取列宽的方法  
    public int getColumnWidth() {  
        return columnWidth;  
    }  
  
    // 设置列宽的方法  
    public void setColumnWidth(int columnWidth) {  
        this.columnWidth = columnWidth;  
    }  
}